var stu={
    name:'小K',
    age:18,
    sex:'男'
}
for(var k in stu){
    console.log(k+"---"+stu[k]);
}